/* React LogViewer 样式 */
.react-log-viewer {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #1e1e1e;
  color: #d4d4d4;
}

/* 搜索栏样式 */
.search-toggle {
  padding: 8px;
  border-bottom: 1px solid #333;
}

.search-bar-container {
  padding: 8px 12px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input {
  background-color: #3c3c3c !important;
  border: 1px solid #555 !important;
  color: #d4d4d4 !important;
  font-size: 13px;
}

.search-input:focus {
  background-color: #404040 !important;
  border-color: #007acc !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 122, 204, 0.25) !important;
  color: #d4d4d4 !important;
}

.search-input::placeholder {
  color: #888 !important;
}

.search-results-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #cccccc;
}

.search-count {
  background-color: #007acc;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.search-navigation {
  display: flex;
  gap: 2px;
}

.search-navigation .btn {
  padding: 2px 6px;
  font-size: 11px;
  background-color: #3c3c3c;
  border-color: #555;
  color: #d4d4d4;
}

.search-navigation .btn:hover {
  background-color: #404040;
  border-color: #666;
}

.search-navigation .btn:disabled {
  background-color: #2d2d30;
  border-color: #444;
  color: #666;
}

.search-no-results {
  color: #f48771;
  font-size: 12px;
}

/* 日志内容容器 */
.log-content-container {
  flex: 1;
  overflow: hidden;
  background-color: #1e1e1e;
}

/* 日志高亮样式 */
.log-error, .error {
  color: #ff6b6b;
  font-weight: bold;
}

.log-warning, .warning {
  color: #ffa726;
  font-weight: bold;
}

.log-info, .info {
  color: #42a5f5;
}

.log-timestamp {
  color: #888;
  font-weight: normal;
}

.log-level {
  color: #66bb6a;
  font-weight: bold;
}

.log-tag {
  color: #9c27b0;
  font-weight: bold;
}

.log-event {
  color: #4caf50;
}

.log-command {
  color: #ff9800;
}

.log-other {
  color: #d4d4d4;
}

.debug {
  color: #90a4ae;
}

/* react-lazylog 自定义样式 */
.react-lazylog {
  background-color: #1e1e1e !important;
  color: #d4d4d4 !important;
  font-family: 'Consolas', 'Courier New', monospace !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.react-lazylog-line {
  padding: 0 8px;
  border-left: 3px solid transparent;
}

.react-lazylog-line:hover {
  background-color: #2d2d30 !important;
  border-left-color: #007acc;
}

.react-lazylog-line-number {
  color: #858585 !important;
  background-color: #252526 !important;
  border-right: 1px solid #333 !important;
  padding: 0 8px;
  min-width: 50px;
  text-align: right;
  user-select: none;
}

.react-lazylog-line-content {
  padding-left: 8px;
  white-space: pre;
  word-wrap: break-word;
}

/* 搜索高亮 */
.react-lazylog .search-highlight {
  background-color: #f9c74f !important;
  color: #000 !important;
  padding: 1px 2px;
  border-radius: 2px;
}

.react-lazylog .search-highlight.current {
  background-color: #ff6b6b !important;
  color: #fff !important;
}

/* 滚动条样式 */
.react-lazylog ::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.react-lazylog ::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.react-lazylog ::-webkit-scrollbar-thumb {
  background: #424242;
  border-radius: 6px;
}

.react-lazylog ::-webkit-scrollbar-thumb:hover {
  background: #4f4f4f;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-results-info {
    justify-content: space-between;
    margin-top: 8px;
  }
  
  .react-lazylog {
    font-size: 12px !important;
  }
}

/* 按钮样式覆盖 */
.btn-outline-secondary {
  background-color: #3c3c3c;
  border-color: #555;
  color: #d4d4d4;
}

.btn-outline-secondary:hover {
  background-color: #404040;
  border-color: #666;
  color: #ffffff;
}

.btn-outline-secondary:focus {
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}